package com.api.mc
{
	import com.game.utils.MyTimer;
	
	import flash.display.MovieClip;
	import flash.text.TextField;
	
	public class InitClew extends MovieClip
	{
		//swf 资源
		public var disTxt:TextField;
		public var clewTxt:TextField;
		
		
		//变量
		private var _myTimer:MyTimer
		private var _str:String;
		private var _timer:uint=0;
		public function InitClew()
		{
				_myTimer=new MyTimer();
		}
		public function setClew(str:String,clew:String=""):void{
			_str=str;
			clewTxt.text=clew;
			_myTimer.gc();
			setEffect();
			_timer=0;
			_myTimer.setTimer(setEffect,300);
			
		}
		private function setEffect():void{
			var _addStr:String="";
			for (var i:int = 0; i < _timer; i++) 
			{
				_addStr+=".";
			}
			disTxt.text=_str+_addStr;
			_timer++;
			if(_timer>3){
				_timer=0;
			}
			
		}
	}
}